<!DOCTYPE html>
<html lang="en">
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link href="css/style.css" rel="stylesheet">
    </head>
    <body>
    <div>
        哈哈哈
    </div>
    <input type="text" name="" value="">
    <script>
        window.onload=function(){
            document.onkeyup=function(event){
                alert(event.keyCode);
            }
        }
    </script>
    </body>
</html>